<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<script>
var str='abcdef';

//alert(str.substring(2, 5));	//不包括结束位置
alert(str.substring(1));
</script>
</head>

<body>
</body>
</html>
